#ifndef __KEY_H__
#define __KEY_H__	 
#include "main.h"
 	 


//#define KEY0 PCin(5)   	
//#define KEY1 PAin(15)	 
//#define WK_UP  PAin(0)	 
 

#define KEY1  HAL_GPIO_ReadPin(KEY_1_GPIO_Port,KEY_1_Pin)//读取按键1
#define KEY2  HAL_GPIO_ReadPin(KEY_2_GPIO_Port,KEY_2_Pin)//读取按键2
#define KEY3  HAL_GPIO_ReadPin(KEY_3_GPIO_Port,KEY_3_Pin)//读取按键3
#define KEY4  HAL_GPIO_ReadPin(KEY_4_GPIO_Port,KEY_4_Pin)//读取按键4



#define KEY1_PRES	1		//KEY1  
#define KEY2_PRES	2		//KEY2 
#define KEY3_PRES	3		//KEY3  
#define KEY4_PRES	4		//KEY4 


void KEY_Init(void);//IO初始化
unsigned char KEY_Scan(unsigned char mode);  	//按键扫描函数	

#endif
